/*
 * XML Type:  one-to-one
 * Namespace: http://java.sun.com/xml/ns/persistence/orm
 * Java type: com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne
 *
 * Automatically generated - do not modify.
 */
package com.googlecode.horncomb.orm.jpa.v10.xmlbeans;


/**
 * An XML one-to-one(@http://java.sun.com/xml/ns/persistence/orm).
 *
 * This is a complex type.
 */
public interface OneToOne extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)
        org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(OneToOne.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s5B4C45932D2FDE7154D0A2FFEBD94B1B").resolveHandle("onetoone0c8etype");
    
    /**
     * Gets a List of "primary-key-join-column" elements
     */
    java.util.List<com.googlecode.horncomb.orm.jpa.v10.xmlbeans.PrimaryKeyJoinColumn> getPrimaryKeyJoinColumnList();
    
    /**
     * Gets array of all "primary-key-join-column" elements
     * @deprecated
     */
    @Deprecated
	com.googlecode.horncomb.orm.jpa.v10.xmlbeans.PrimaryKeyJoinColumn[] getPrimaryKeyJoinColumnArray();
    
    /**
     * Gets ith "primary-key-join-column" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.PrimaryKeyJoinColumn getPrimaryKeyJoinColumnArray(int i);
    
    /**
     * Returns number of "primary-key-join-column" element
     */
    int sizeOfPrimaryKeyJoinColumnArray();
    
    /**
     * Sets array of all "primary-key-join-column" element
     */
    void setPrimaryKeyJoinColumnArray(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.PrimaryKeyJoinColumn[] primaryKeyJoinColumnArray);
    
    /**
     * Sets ith "primary-key-join-column" element
     */
    void setPrimaryKeyJoinColumnArray(int i, com.googlecode.horncomb.orm.jpa.v10.xmlbeans.PrimaryKeyJoinColumn primaryKeyJoinColumn);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "primary-key-join-column" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.PrimaryKeyJoinColumn insertNewPrimaryKeyJoinColumn(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "primary-key-join-column" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.PrimaryKeyJoinColumn addNewPrimaryKeyJoinColumn();
    
    /**
     * Removes the ith "primary-key-join-column" element
     */
    void removePrimaryKeyJoinColumn(int i);
    
    /**
     * Gets a List of "join-column" elements
     */
    java.util.List<com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinColumn> getJoinColumnList();
    
    /**
     * Gets array of all "join-column" elements
     * @deprecated
     */
    @Deprecated
	com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinColumn[] getJoinColumnArray();
    
    /**
     * Gets ith "join-column" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinColumn getJoinColumnArray(int i);
    
    /**
     * Returns number of "join-column" element
     */
    int sizeOfJoinColumnArray();
    
    /**
     * Sets array of all "join-column" element
     */
    void setJoinColumnArray(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinColumn[] joinColumnArray);
    
    /**
     * Sets ith "join-column" element
     */
    void setJoinColumnArray(int i, com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinColumn joinColumn);
    
    /**
     * Inserts and returns a new empty value (as xml) as the ith "join-column" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinColumn insertNewJoinColumn(int i);
    
    /**
     * Appends and returns a new empty value (as xml) as the last "join-column" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinColumn addNewJoinColumn();
    
    /**
     * Removes the ith "join-column" element
     */
    void removeJoinColumn(int i);
    
    /**
     * Gets the "join-table" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinTable getJoinTable();
    
    /**
     * True if has "join-table" element
     */
    boolean isSetJoinTable();
    
    /**
     * Sets the "join-table" element
     */
    void setJoinTable(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinTable joinTable);
    
    /**
     * Appends and returns a new empty "join-table" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.JoinTable addNewJoinTable();
    
    /**
     * Unsets the "join-table" element
     */
    void unsetJoinTable();
    
    /**
     * Gets the "cascade" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.CascadeType getCascade();
    
    /**
     * True if has "cascade" element
     */
    boolean isSetCascade();
    
    /**
     * Sets the "cascade" element
     */
    void setCascade(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.CascadeType cascade);
    
    /**
     * Appends and returns a new empty "cascade" element
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.CascadeType addNewCascade();
    
    /**
     * Unsets the "cascade" element
     */
    void unsetCascade();
    
    /**
     * Gets the "name" attribute
     */
    java.lang.String getName();
    
    /**
     * Gets (as xml) the "name" attribute
     */
    org.apache.xmlbeans.XmlString xgetName();
    
    /**
     * Sets the "name" attribute
     */
    void setName(java.lang.String name);
    
    /**
     * Sets (as xml) the "name" attribute
     */
    void xsetName(org.apache.xmlbeans.XmlString name);
    
    /**
     * Gets the "target-entity" attribute
     */
    java.lang.String getTargetEntity();
    
    /**
     * Gets (as xml) the "target-entity" attribute
     */
    org.apache.xmlbeans.XmlString xgetTargetEntity();
    
    /**
     * True if has "target-entity" attribute
     */
    boolean isSetTargetEntity();
    
    /**
     * Sets the "target-entity" attribute
     */
    void setTargetEntity(java.lang.String targetEntity);
    
    /**
     * Sets (as xml) the "target-entity" attribute
     */
    void xsetTargetEntity(org.apache.xmlbeans.XmlString targetEntity);
    
    /**
     * Unsets the "target-entity" attribute
     */
    void unsetTargetEntity();
    
    /**
     * Gets the "fetch" attribute
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.FetchType.Enum getFetch();
    
    /**
     * Gets (as xml) the "fetch" attribute
     */
    com.googlecode.horncomb.orm.jpa.v10.xmlbeans.FetchType xgetFetch();
    
    /**
     * True if has "fetch" attribute
     */
    boolean isSetFetch();
    
    /**
     * Sets the "fetch" attribute
     */
    void setFetch(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.FetchType.Enum fetch);
    
    /**
     * Sets (as xml) the "fetch" attribute
     */
    void xsetFetch(com.googlecode.horncomb.orm.jpa.v10.xmlbeans.FetchType fetch);
    
    /**
     * Unsets the "fetch" attribute
     */
    void unsetFetch();
    
    /**
     * Gets the "optional" attribute
     */
    boolean getOptional();
    
    /**
     * Gets (as xml) the "optional" attribute
     */
    org.apache.xmlbeans.XmlBoolean xgetOptional();
    
    /**
     * True if has "optional" attribute
     */
    boolean isSetOptional();
    
    /**
     * Sets the "optional" attribute
     */
    void setOptional(boolean optional);
    
    /**
     * Sets (as xml) the "optional" attribute
     */
    void xsetOptional(org.apache.xmlbeans.XmlBoolean optional);
    
    /**
     * Unsets the "optional" attribute
     */
    void unsetOptional();
    
    /**
     * Gets the "mapped-by" attribute
     */
    java.lang.String getMappedBy();
    
    /**
     * Gets (as xml) the "mapped-by" attribute
     */
    org.apache.xmlbeans.XmlString xgetMappedBy();
    
    /**
     * True if has "mapped-by" attribute
     */
    boolean isSetMappedBy();
    
    /**
     * Sets the "mapped-by" attribute
     */
    void setMappedBy(java.lang.String mappedBy);
    
    /**
     * Sets (as xml) the "mapped-by" attribute
     */
    void xsetMappedBy(org.apache.xmlbeans.XmlString mappedBy);
    
    /**
     * Unsets the "mapped-by" attribute
     */
    void unsetMappedBy();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne newInstance() {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        /** @param xmlAsString the string value to parse */
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); }
        
        /** @param file the file from which to load an xml document */
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        /** @deprecated {@link XMLInputStream} */
        @Deprecated
		public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        /** @deprecated {@link XMLInputStream} */
        @Deprecated
		public static com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (com.googlecode.horncomb.orm.jpa.v10.xmlbeans.OneToOne) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        /** @deprecated {@link XMLInputStream} */
        @Deprecated
		public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        /** @deprecated {@link XMLInputStream} */
        @Deprecated
		public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
